Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 6 - Style Objects / Style Objects Reference
Style Objects Routines / Managing Subdivision Styles


Q3SubdivisionStyle_New

You can use the Q3SubdivisionStyle_New function to create a new subdivision style object.

TQ3StyleObject Q3SubdivisionStyle_New (
const TQ3SubdivisionStyleData *data);
data
A pointer to a subdivision style data structure.
DESCRIPTION
The Q3SubdivisionStyle_New function returns, as its function result, a new style object having the subdivision style specified by the data parameter. The method field of the subdivision style data structure pointed to by the data parameter should be one of these values:

kQ3SubdivisionMethodConstant
kQ3SubdivisionMethodWorldSpace
kQ3SubdivisionMethodScreenSpace
The meaning of the c1 and c2 fields depends on the value of the method field. See "Subdivision Style Data Structure" on page 6-11 for details.

If a new style object could not be created, Q3SubdivisionStyle_New returns the value NULL.

To change the current subdivision style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3SubdivisionStyle_Submit to draw the style in immediate mode.

SEE ALSO
See "Subdivision Styles" on page 6-7 for a description of subdivision styles.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996